package com.kcwl.idea.plugins.tool;

import java.util.List;

public class Menu {

    /**
     * 菜单名称
     */
    private String name;

    /**
     * 菜单唯一标识
     */
    private String code;
    /**
     * 上级菜单
     */
    private String parentCode;
    /**
     * 菜单对应的事件
     */
    private String action;

    /**
     * 下级菜单
     */
    private List<Menu> children;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAction() {
        return action;
    }

    public void setAction(String action) {
        this.action = action;
    }

    public List<Menu> getChildren() {
        return children;
    }

    public void setChildren(List<Menu> children) {
        this.children = children;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getParentCode() {
        return parentCode;
    }

    public void setParentCode(String parentCode) {
        this.parentCode = parentCode;
    }

    @Override
    public String toString() {
        return this.name;
    }
}
